package com.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * @author 
 */
public class Expert implements Serializable {
    private String eno;

    private String ename;

    private String edesc;

    private String ecurrdesc;

    private Date ebirthday;

    private String esex;

    private Integer ebalance;

    private String eheadimg;

    private String epwd;

    private String eemail;

    private String ephone;

    private static final long serialVersionUID = 1L;

    public String getEno() {
        return eno;
    }

    public void setEno(String eno) {
        this.eno = eno;
    }

    public String getEname() {
        return ename;
    }

    public void setEname(String ename) {
        this.ename = ename;
    }

    public String getEdesc() {
        return edesc;
    }

    public void setEdesc(String edesc) {
        this.edesc = edesc;
    }

    public String getEcurrdesc() {
        return ecurrdesc;
    }

    public void setEcurrdesc(String ecurrdesc) {
        this.ecurrdesc = ecurrdesc;
    }

    public Date getEbirthday() {
        return ebirthday;
    }

    public void setEbirthday(Date ebirthday) {
        this.ebirthday = ebirthday;
    }

    public String getEsex() {
        return esex;
    }

    public void setEsex(String esex) {
        this.esex = esex;
    }

    public Integer getEbalance() {
        return ebalance;
    }

    public void setEbalance(Integer ebalance) {
        this.ebalance = ebalance;
    }

    public String getEheadimg() {
        return eheadimg;
    }

    public void setEheadimg(String eheadimg) {
        this.eheadimg = eheadimg;
    }

    public String getEpwd() {
        return epwd;
    }

    public void setEpwd(String epwd) {
        this.epwd = epwd;
    }

    public String getEemail() {
        return eemail;
    }

    public void setEemail(String eemail) {
        this.eemail = eemail;
    }

    public String getEphone() {
        return ephone;
    }

    public void setEphone(String ephone) {
        this.ephone = ephone;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Expert other = (Expert) that;
        return (this.getEno() == null ? other.getEno() == null : this.getEno().equals(other.getEno()))
            && (this.getEname() == null ? other.getEname() == null : this.getEname().equals(other.getEname()))
            && (this.getEdesc() == null ? other.getEdesc() == null : this.getEdesc().equals(other.getEdesc()))
            && (this.getEcurrdesc() == null ? other.getEcurrdesc() == null : this.getEcurrdesc().equals(other.getEcurrdesc()))
            && (this.getEbirthday() == null ? other.getEbirthday() == null : this.getEbirthday().equals(other.getEbirthday()))
            && (this.getEsex() == null ? other.getEsex() == null : this.getEsex().equals(other.getEsex()))
            && (this.getEbalance() == null ? other.getEbalance() == null : this.getEbalance().equals(other.getEbalance()))
            && (this.getEheadimg() == null ? other.getEheadimg() == null : this.getEheadimg().equals(other.getEheadimg()))
            && (this.getEpwd() == null ? other.getEpwd() == null : this.getEpwd().equals(other.getEpwd()))
            && (this.getEemail() == null ? other.getEemail() == null : this.getEemail().equals(other.getEemail()))
            && (this.getEphone() == null ? other.getEphone() == null : this.getEphone().equals(other.getEphone()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getEno() == null) ? 0 : getEno().hashCode());
        result = prime * result + ((getEname() == null) ? 0 : getEname().hashCode());
        result = prime * result + ((getEdesc() == null) ? 0 : getEdesc().hashCode());
        result = prime * result + ((getEcurrdesc() == null) ? 0 : getEcurrdesc().hashCode());
        result = prime * result + ((getEbirthday() == null) ? 0 : getEbirthday().hashCode());
        result = prime * result + ((getEsex() == null) ? 0 : getEsex().hashCode());
        result = prime * result + ((getEbalance() == null) ? 0 : getEbalance().hashCode());
        result = prime * result + ((getEheadimg() == null) ? 0 : getEheadimg().hashCode());
        result = prime * result + ((getEpwd() == null) ? 0 : getEpwd().hashCode());
        result = prime * result + ((getEemail() == null) ? 0 : getEemail().hashCode());
        result = prime * result + ((getEphone() == null) ? 0 : getEphone().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", eno=").append(eno);
        sb.append(", ename=").append(ename);
        sb.append(", edesc=").append(edesc);
        sb.append(", ecurrdesc=").append(ecurrdesc);
        sb.append(", ebirthday=").append(ebirthday);
        sb.append(", esex=").append(esex);
        sb.append(", ebalance=").append(ebalance);
        sb.append(", eheadimg=").append(eheadimg);
        sb.append(", epwd=").append(epwd);
        sb.append(", eemail=").append(eemail);
        sb.append(", ephone=").append(ephone);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}